var config = require('utils/config');
App({
  globalData: {
    userInfo: null
  },
  onLaunch: function () {
    // 获取用户信息 
    if (!wx.cloud) {
      console.error('请使用 2.2.3 或以上的基础库以使用云能力')
    } else {
      wx.cloud.init({
        env: 'cloud1-6g1e2ywx91b6c9d1',
        traceUser: true,
      })
    }

    this.globalData = {}
    wx.getUserProfile({
      desc: 'test',
      lang: 'zh_CN',
      success: (result) => {console.log(result)},
      fail: (res) => {},
      complete: (res) => {},
    })
   
  }
})